text=open("CAR-data-1k.txt")
count=0
sum=0
for line in text:
    list=line.split()
    a=eval(list[4])
    sum=sum+a
    count=count+1

text.close()
ave=sum/count
print("平均值是%.2f"%ave)

